import { useContext } from 'react'
import { UserContext, TokenContext } from '../context'

export function useUserToken() {
  const user = useContext(UserContext)
  const token = useContext(TokenContext)

  return {
    user,
    token,
  }
}
